package cn.zjh.system.mapper;

import cn.zjh.system.domain.Role;
import cn.zjh.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-06-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addRoleMenu(@Param("id") Long id, @Param("menus") List<Long> menus);

    void addRolePermissions(@Param("id")Long id, @Param("permissions")List<Long> permissions);

    void delRoleMenuByRoIeId(Long id);

    void delRolePermissionByRoIeId(Long id);

    void delRoleEmployeeRoleByRoIeId(Long id);
}
